#include "stdafx.h"
#include "wnd.h"
#include "WinMsg.h"





Wnd::Wnd(HWND w):m_Wnd(w){
	
}
HWND Wnd::GetWnd(){
	return m_Wnd;
}
void Wnd::SetWnd(HWND hwnd){
	m_Wnd = hwnd;
}
Wnd::operator HWND(){
	return GetWnd();
}

Rect Wnd::GetWindowRect(){
	Rect r;
	::GetWindowRect(GetWnd(), &r);
	return r;
}
Rect Wnd::GetClientRect(){
	Rect r;
	::GetClientRect(GetWnd(), &r);
	return r;
}

BOOL Wnd::ShowWindow(int cmdShow){
	return ::ShowWindow(GetWnd(), cmdShow);
}
BOOL Wnd::UpdateWindow(){
	return ::UpdateWindow(GetWnd());
}

HWND Wnd::SetFocus(){
	return ::SetFocus(GetWnd());
}
BOOL Wnd::DestroyWindow(){
	return ::DestroyWindow(GetWnd());
}
BOOL Wnd::MoveWindow(int x, int y, int w, int h, BOOL repaint){
	return ::MoveWindow(GetWnd(), x, y, w, h, repaint);
}